<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <button class="btn1">发送请求</button>
    <script src="../../day09/01.axios拦截器/axios.min.js"></script>
    <script src="./request-3.js"></script>
    <script>
      document.querySelector(".btn1").onclick = async function () {
        try {
          const res = await request.get("/testCancel");
          console.log(res);
        } catch (e) {
          console.log(e);
        }
      };
    </script>
  </body>
</html>
